﻿#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// MetaCollection
// 
// MetaCollection is a system to provide a standard structure, permissions and metadata service
// for content organization.
//
// This project is hosted at Google Code at http://code.google.com/p/metacollection/
//
// This project is licensed under the BSD license.  See the License.txt file for more information.
///////////////////////////////////////////////////////////////////////////////////////////////////
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MetaCollection.Framework;
using MetaCollection.Framework.Model;
using System.Security;

namespace MetaCollection.ContentService.WebDav.Methods
{
	/// <summary>
	/// Provides support for the COPY http verb on items in the collection.
	/// </summary>
	public static class Copy
	{
		/// <summary>
		/// Processes the COPY request on an item.
		/// </summary>
		/// <param name="context">The context.</param>
		public static void Respond(DavContext context, IRequestHandler handler)
		{
			if (context == null)
				throw new ArgumentNullException("context");

			IItemInstance item = context.Item as IItemInstance;

			if (item == null)
				throw new Http.ClientException(Http.ClientErrorStatus.NotFound);
		}
	}
}
